/** COPYRIGHT(C) 2008. Loc Phan. All Rights Reserved.
    A class that store info of a worker
    @author Loc Phan
    @version 1.01 2008-12-1
*/
package edu.sjsu.phan.postlab14;

public class Worker
{
   /**Constructs a worker
    * 
    * @param aName Name of the worker
    * @param aSalaryRate Salary of the worker
    */
   public Worker(String aName, double aSalaryRate)
   {
      name = aName;
      salary = aSalaryRate;
   }
   /**Returns Name of the Worker
    * 
    * @return Name of The Worker
    */
   public String getName()
   {
      return name;
   }
   /**Returns the salary rate of worker
    * 
    * @return Salary Rate
    */
   public double getSalaryRate()
   {
      return salary;
   }
   private String name;
   private double salary;
}
